body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #f8f9fa;
}

.canvas-container {
    position: relative;
    display: inline-block;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    overflow: hidden;
    background: white;
}

#drawingCanvas {
    cursor: crosshair;
    display: block;
}

.canvas-overlay {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(255, 255, 255, 0.9);
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
}

.result-container {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.digit-result {
    text-align: center;
    margin: 20px 0;
}

.digit-number {
    font-size: 72px;
    font-weight: bold;
    color: #007bff;
    display: block;
}

.confidence-bar {
    margin: 15px 0;
}

.probability-item {
    display: flex;
    align-items: center;
    margin: 5px 0;
    font-size: 14px;
}

.probability-label {
    width: 20px;
    text-align: right;
    margin-right: 10px;
    font-weight: bold;
}

.probability-bar {
    flex: 1;
    height: 20px;
    background: #e9ecef;
    border-radius: 10px;
    overflow: hidden;
    margin-right: 10px;
}

.probability-fill {
    height: 100%;
    background: linear-gradient(90deg, #007bff, #0056b3);
    transition: width 0.3s ease;
}

.probability-value {
    width: 40px;
    text-align: left;
    font-size: 12px;
    color: #6c757d;
}

.btn {
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.progress {
    height: 8px;
    border-radius: 4px;
}

.alert {
    border-radius: 8px;
}

.card {
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

@media (max-width: 768px) {
    .canvas-container {
        width: 100%;
        max-width: 280px;
    }
    
    #drawingCanvas {
        width: 100%;
        height: auto;
    }
}
